package fm.sys.token;

import org.apache.shiro.authc.HostAuthenticationToken;
import org.apache.shiro.authc.RememberMeAuthenticationToken;

public class WebUserToken implements HostAuthenticationToken, RememberMeAuthenticationToken {
    private String id;
    private String phone;
    private String webappName;

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getWebappName() {
        return webappName;
    }

    public void setWbappName(String phone) {
        this.webappName = webappName;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public WebUserToken(String phone,String webappName){
        this.phone = phone;
        this.webappName = webappName;
        this.id = id;
    }
    @Override
    public String getHost() {
        return null;
    }

    @Override
    public boolean isRememberMe() {
        return false;
    }

    @Override
    public Object getPrincipal() {
        return phone;
    }

    @Override
    public Object getCredentials() {
        return webappName;
    }
}
